package com.yao.component.circle;

import com.yao.component.circle.dataobject.CircleProfile;
import com.yao.component.circle.dataobject.Message;
import com.yao.component.circle.dataobject.Post;
import com.yao.sdk.net.ResponseInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/1/26.
 */
public class TestData extends DefaultCircleDataSourceImpl {

    @Override
    public CircleProfile getProfile() {
        return super.getProfile();
    }


    public TestData() {
        ArrayList<Post> list = new ArrayList<>();
        setCachedData(list);
    }

    @Override
    public void requestPublishMessage(Message toBePublishedMessage) {
        circleView.refresh();
    }

    @Override
    public void requestDeleteMessage(String messageId) {
        circleView.refresh();
    }

    @Override
    public void requestDeletePost(String postId) {
        super.requestDeletePost(postId);
    }

    @Override
    public void requestGetPost() {
        circleView.refresh();
    }

    @Override
    public void onResponse(String url, ResponseInfo responseInfo) {
        super.onResponse(url, responseInfo);
    }

}
